login

inline fun PocketbaseClient.login(initialToken: String? = null, setup: TokenLoginBuilder.() -> Unit = {})

Logs into the Pocketbase client with the specified token. This is required before making any API requests that require authentication.

Parameters

initialToken

The auth token to login in to the client with if you do not use the builder.